RewriteEngine On
RewriteBase /

# 1. Agar user /wepay.php access kare toh usey clean URL par redirect karein (Optional)
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+(.+)\.php[\s?] [NC]
RewriteRule ^ /%1 [R=301,L]

# 2. Bina .php ke file access karne ke liye (Internal Mapping)
# [QSA] ka matlab hai Query String Append - yeh aapke uid aur sign ko secure rakhta hai
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [QSA,L]